package com.ruin.tech.ahri.model.dto;

import lombok.Data;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: yuegc
 * @description:
 * @create: 2019/12/13 14:38
 */
@ToString
@Data
public class CalculatorDTO implements Serializable {
    private static final long serialVersionUID = 3965107200190537632L;

    /**
     * 贷款总额
     */
    @NotNull(message = "贷款总额不能为空")
    private Double principal;
    /**
     * 贷款期限
     */
    @NotNull(message = "贷款期限不能为空")
    private Integer months;
    /**
     * 贷款利率
     */
    @NotNull(message = "贷款利率不能为空")
    private Double rate;
}
